#include "jchinesesymbolinputpanel.h"
#include "ui_jchinesesymbolinputpanel.h"
#include "inputmethod/jabstractinputpanel_p.h"
#include "widgets/jvkbutton.h"
#include <QTECore/QTEGlobal>

namespace QTE
{

SymbolPanel_register(JChineseSymbolInputPanel, LGG_SimplifiedChinese);

class Q_DECL_HIDDEN JChineseSymbolInputPanelPrivate : public JAbstractInputPanelPrivate
{
public:
	~JChineseSymbolInputPanelPrivate() override;
	void init(JAbstractInputPanel *q_ptr) override;

public:
	Ui::JChineseSymbolInputPanel *ui;
};

JChineseSymbolInputPanelPrivate::~JChineseSymbolInputPanelPrivate()
{
	delete ui;
}

void JChineseSymbolInputPanelPrivate::init(JAbstractInputPanel *q_ptr)
{
	JAbstractInputPanelPrivate::init(q_ptr);
	ui = new Ui::JChineseSymbolInputPanel();
	ui->setupUi(J_RCT(JChineseSymbolInputPanel*, q_ptr));
	ui->horizontalLayout_5->insertWidget(ui->horizontalLayout_5->count() - 1, m_backSpaceButton);
}

/*------------------------------------------------------------------------------------------------*/

JChineseSymbolInputPanel::JChineseSymbolInputPanel(QWidget *parent) :
	JAbstractChinesePanel(new JChineseSymbolInputPanelPrivate(), parent)
{

}

JChineseSymbolInputPanel::~JChineseSymbolInputPanel()
{

}

} //namespace QTE
